package com.yunsc.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunsc.common.utils.PageUtils;
import com.yunsc.common.utils.Query;

import com.yunsc.dao.YunscOrderDao;
import com.yunsc.module.entity.YunscOrderEntity;
import com.yunsc.service.YunscOrderService;


@Service("yunscOrderService")
public class YunscOrderServiceImpl extends ServiceImpl<YunscOrderDao, YunscOrderEntity> implements YunscOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YunscOrderEntity> page = this.page(
                new Query<YunscOrderEntity>().getPage(params),
                new QueryWrapper<YunscOrderEntity>()
        );

        return new PageUtils(page);
    }

}